import Vue from "vue";
import  Router from "vue-router";

Vue.use(Router);

const router=new Router({
    mode:"hash",
    routes:[
        {
            name:"index",
            path:"/",
            component:()=> import("../pages/index.vue")
        },{
            name:"/header",
            path:"/header",
            component:()=> import("../pages/header.vue")
        },{
            name:"/cart",
            path:"/cart",
            component:()=> import("../pages/cart.vue")
        },{
            name:"/demo",
            path:"/demo",
            component:()=> import("../pages/demo.vue")
        },{
            name:"/checkout",
            path:"/checkout",
            component:()=> import("../pages/checkout.vue")
        },{
            name:"shop",
            path:"/shop",
            component:()=> import("../pages/shop.vue"),
            children:[
                {
                    name:"shop1",
                    path:"/shop1",
                    component:()=> import("../pages/shop/shop1.vue")
                },
                {
                    name:"shop2",
                    path:"/shop2",
                    component:()=> import("../pages/shop/shop2.vue")
                },
                {
                    name:"shop3",
                    path:"/shop3",
                    component:()=> import("../pages/shop/shop3.vue")
                },
                {
                    name:"shop4",
                    path:"/shop4",
                    component:()=> import("../pages/shop/shop4.vue")
                },
                {
                    name:"shop5",
                    path:"/shop5",
                    component:()=> import("../pages/shop/shop5.vue")
                },
                {
                    name:"shop6",
                    path:"/shop6",
                    component:()=> import("../pages/shop/shop6.vue")
                },
                {
                    name:"shop7",
                    path:"/shop7",
                    component:()=> import("../pages/shop/shop7.vue")
                }
            ]
        },{
            name:"single",
            path:"/single",
            component:()=> import("../pages/single_product.vue")
        },{
            name:"login",
            path:"/login",
            component:()=> import("../pages/login.vue")
        },{
            name:"blog",
            path:"/blog",
            component:()=> import("../pages/blog.vue")
        },{
            name:"contact",
            path:"/contact",
            component:()=> import("../pages/contact.vue")
        },{
            name:"singlePost",
            path:"/singlePost",
            component:()=> import("../pages/singlePost.vue")
        },{
            name:"register",
            path:"/register",
            component:()=> import("../pages/register.vue")
        }

    ]
})

export default router